import request from '@/utils/request'
import type {newObject,newRespnseData,reqtype,liketype} from './type'
export function getnewdata():Promise<newRespnseData> {
  const url = '/new/newdata'
  return request({
    url: url,
    method: 'get'
  })
}

export function reqlike(data:liketype):Promise<reqtype> {
  console.log(JSON.stringify(data))

  const url = '/new/getlike'
  return request({
    url: url,
    method: 'post',
    data: JSON.stringify(data),

    headers: {
      'Content-Type': 'application/json'
    }
  })
}
